﻿$(document).ready(function () {

    // Caches a click on a delete user link.
    $(document).on('click', '.deleteuser', function (event) {
        var disus = confirm("Eyða notandanum?");
        if (disus != null && disus != "") {
        }
        else {
            event.preventDefault();
        }
    });

    // Caches a click on a makeadmin link.
    $(document).on('click', '.makeuseradmin', function (event) {
        var disus = confirm("Gera notanda að Administrator?");
        if (disus != null && disus != "") {
        }
        else {
            event.preventDefault();
        }
    });

    // Caches a click on a deleteme link
    $(document).on('click', '#changepassword #deletemeplease', function (event) {
        var disus = confirm("Eyða þér úr kerfinu?");
        if (disus != null && disus != "") {
        }
        else {
            event.preventDefault();
        }
    });

});